package cn.itsource.system.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 
 * @TableName t_menu
 */
@Data
public class TMenu implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String component;

    /**
     * 
     */
    private String url;

    /**
     * 
     */
    private String icon;

    /**
     * 
     */
    private Integer index;

    /**
     * 
     */
    private Long parentId;

    /**
     * 
     */
    private String intro;

    /**
     * 
     */
    private Boolean state;

    private String parentName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TMenu> children = new ArrayList<>();

    private static final long serialVersionUID = 1L;

}